class Solution:
    def findMedianSortedArrays(self, nums1, nums2) :
        ls_m=len(nums1)
        ls_n=len(nums2)
        nums_he=nums1.extend(nums2)
        nums_he=sorted(nums_he)
        if (ls_m+ls_n)%2==0:
            return (nums_he[(ls_m+ls_n)/2-1]+nums_he[(ls_m+ls_n)/2])/2
        else:
            return nums_he[(ls_m+ls_n+1)/2-1]


s=Solution()
a=[1,2,3]
b=[2,3]
print(s.findMedianSortedArrays(a, b))
